package com.itheima.mall.service.omsService;

import com.itheima.pojo.oms.OmsCompanyAddress;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OmsCompanyAddressService {
    @DubboReference
    private OmsCompanyAddressApi omsCompanyAddressApi;

    public List<OmsCompanyAddress> list() {

        return omsCompanyAddressApi.list();
    }
}
